function LoadStyleSheet(src){
	if(document.createStyleSheet) {
		document.createStyleSheet(src);
		return;
	}
	var css=document.createElement('link');
	css.rel='stylesheet';
	css.href=src;
	$T("head")[0].appendChild(css);
}
function LoadJavascript(src){
	var script = document.createElement('SCRIPT');
	script.src = src;
	script.type = "text/javascript";
	$T("head")[0].appendChild(script);
}
var CodeStoryHeadLink = {
	items:[],
	RegisterItem:function(item){
		for(var i = 0; i < this.items.length; i ++){
			var it = this.items[i];
			if (it.src.toLowerCase() === item.src.toLowerCase() && it.innertype === item.innertype){
				return;
			}
		}
		this.items.push(item);
	},
	Load:function(){
		for(var i = 0; i < this.items.length; i ++){
			var it = this.items[i];
			switch(it.innertype){
				case 0:
					LoadStyleSheet(it.src);
					break;
				case 1:
					LoadJavascript(it.src);
					break;
			}
		}
	}
}